<!--
 * @Description: 举报详情模态框
 * @version: 电子名片2.0
 * @Author: 尹鑫
 * @Date: 2020-12-02 09:31:17
 * @LastEditors: 尹鑫
 * @LastEditTime: 2020-12-16 10:25:24
-->
<template>
  <el-dialog :title="'举报详情'" :visible.sync="_showDetailsModal" :close-on-click-modal="false">
    <el-form :model="reportDetails" :validate-on-rule-change="false">
      <el-form-item label="举报原因：" label-width="110px">{{ reportDetails.reportReasonName }} </el-form-item>
      <el-form-item label="举报内容：" label-width="110px">
        <el-input v-model="reportDetails.reportContent" type="textarea" maxlength="120" :disabled="true" :rows="4" :resize="'none'" />
      </el-form-item>
      <el-form-item label="举报截图：" label-width="110px">
        <el-image v-for="(item, index) in reportDetails.reportPicture" :key="index" style="margin-right:10px; width: 100px; height: 100px" :src="item" :preview-src-list="reportDetails.reportPicture" />
      </el-form-item>
    </el-form>
    <div lot="footer" class="dialog-footer detailDialog">
      <el-button style="float:right" @click="_showDetailsModal = false">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: {
    showDetailsModal: {
      type: Boolean,
      default: false
    },
    reportDetails: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  computed: {
    _showDetailsModal: {
      get() {
        return this.showDetailsModal
      },
      set(value) {
        this.$emit('update:showDetailsModal', value)
      }
    }
  },
  methods: {
    // 取消操作
    cancelModal() {
      this._showDetailsModal = false
    }
  }
}
</script>
<style>
.detailDialog:after{
  content: "020";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
</style>
